package com.bee.plus.market.config;

import com.bee.plus.ai.AiMachineSelector;
import com.bee.plus.mapper.ChatMessageMapper;
import com.bee.plus.mapper.ChatResponseMapper;
import com.bee.plus.market.service.MarketAiService;
import com.bee.plus.market.service.MarketAiServiceProxy;
import com.bee.plus.market.service.impl.MarketAiServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MarketAiServiceConfig {

    @Bean
    public MarketAiService marketAiService(ChatMessageMapper messageMapper,
                                           ChatResponseMapper responseMapper,
                                           AiMachineSelector aiMachineSelector){
        MarketAiService marketAiServiceImpl = new MarketAiServiceImpl(messageMapper, responseMapper, aiMachineSelector);
        return new MarketAiServiceProxy(marketAiServiceImpl);
    }

}
